package com.dq.controller.op.opmerchant.in.request;

import com.dq.domain.base.AbstractEntity;
import com.dq.domain.goods.Goods;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.List;

/**
 * @创建人 gewenzhen
 * @创建时间 2019/9/25
 * @描述
 */
@ApiModel("商品请求结构")
@Data
public class GoodRequest extends AbstractEntity{
    @ApiModelProperty(value = "缩略图")
    public String smallImgUrl;
    @ApiModelProperty(value = "列表图")
    public String listImgUrl;
    @ApiModelProperty(value = "商品分类id")
    public Long categoryId;
    @ApiModelProperty(value = "商品分类id, 后台管理， 传来的级联分类集合")
    public List<Long> categoryIdList;
    @ApiModelProperty(value = "门店id", hidden = true)
    public Long orgId;
    @ApiModelProperty("商品标题")
    public String goodsName;
    @ApiModelProperty("商品编号")
    public String goodsNo;

    @ApiModelProperty("商品详情描述")
    public String goodsDescription;
    @ApiModelProperty(value = "市场价")
    @NotNull
    private BigDecimal originalPrice;
    @ApiModelProperty(value = "成本价")
    @NotNull
    private BigDecimal costPrice;
    @ApiModelProperty(value = "购买价格")
    @NotNull
    private BigDecimal price;
    @ApiModelProperty("商品状态")
    public Goods.GoodsStatus goodsStatus;
    @ApiModelProperty("是否推荐")
    protected Boolean isRecommend;
    @ApiModelProperty("排序")
    public Long sort;
    @ApiModelProperty("库存")
    @NotNull
    public Long goodsStock;
    @ApiModelProperty("是否为积分商品")
    protected Boolean isIntegralGoods;
    @ApiModelProperty("兑换所需积分")
    protected Long integralNum;
    @ApiModelProperty("显示状态")
    protected Goods.ShowStatus showStatus;
    @ApiModelProperty("产品规格")
    protected String sku;
    @ApiModelProperty("商品简介")
    protected String introduce;
}
